﻿<sdk:ChildWindow 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" x:Class="Lottery.Client.SL.Controls.UserRecharge"
    Title="用户充值" Style="{StaticResource ChildWindowStyle_ConfirmWindow}">
    <Grid x:Name="LayoutRoot" >
        <Grid.Resources>
            <Style TargetType="TextBox">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="Margin" Value="2" />
                <Setter Property="Width" Value="100" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
            <Style TargetType="TextBlock">
                <Setter Property="Margin" Value="2" />
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Foreground" Value="Gray" />
            </Style>
            <Style TargetType="PasswordBox">
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="2" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Width" Value="100" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid x:Name="gridAmount" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Margin="0,0,0,0">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="68" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock FontSize="13" Text="充值金额:" />
            <StackPanel Grid.Column="1" Orientation="Horizontal">
                <TextBox x:Name="txtAmount" />
                <TextBlock Text="请填写要充值的相应金额!" FontSize="13" Foreground="BurlyWood" />
            </StackPanel>
            <TextBlock x:Name="lblErrorMsg" Margin="4,2,0,2" Grid.Row="3" Foreground="Lime" HorizontalAlignment="Left" FontSize="13" Text="无法输入时,请按 Ctrl + 空格切换输入法" VerticalAlignment="Center" Grid.ColumnSpan="2" />
            <Button x:Name="btnSubmit" Content="提交" Grid.Row="3" Grid.Column="2"  HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,2,2,2" Style="{StaticResource buttonStyle0}" Width="75" Height="22" />
        </Grid>
        <Grid x:Name="gridMoneyIn" Grid.Row="1" Visibility="Collapsed" VerticalAlignment="Top" RenderTransformOrigin="2,2" Height="220">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock Text="银行户名" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="2">
                <TextBlock x:Name="lbAccountName" TextWrapping="Wrap" Foreground="Lime" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="13" Margin="2"/>
                <TextBlock x:Name="lbCopyAccountName" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="[复制]" VerticalAlignment="Center" FontSize="12" Foreground="White" Cursor="Hand"/>
            </StackPanel>
            <TextBlock Text="银行账号" Margin="0,2,2,2" Grid.Row="1" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="1" Margin="2">
                <TextBlock x:Name="lbBankAccount" TextWrapping="Wrap" Foreground="Lime" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="13" Margin="2"/>
                <TextBlock x:Name="lbCopyBankAccount" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="[复制]" VerticalAlignment="Center" FontSize="12" Foreground="White" Cursor="Hand"/>
            </StackPanel>
            <TextBlock Text="充值金额" Margin="0,2,2,2" Grid.Row="2" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="2" Margin="2">
                <TextBlock x:Name="lblAmount" TextWrapping="Wrap" Foreground="Lime" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="13" Margin="2"/>
                <TextBlock x:Name="lbCopyAmount" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="[复制]" VerticalAlignment="Center" FontSize="12" Foreground="White" Cursor="Hand"/>
                <TextBlock HorizontalAlignment="Center" Margin="2" FontSize="14" TextWrapping="Wrap" Text="充值金额必须与汇款的金额一致,否则无法到帐！" VerticalAlignment="Center" Foreground="Red"/>
                <TextBlock x:Name="btnReturn" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="[返回]" VerticalAlignment="Center" FontSize="12" Foreground="White" Cursor="Hand"/>
            </StackPanel>
            <TextBlock Text="附言" Margin="0,2,0,2" Grid.Row="3" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="3" Margin="2">
                <TextBlock x:Name="lbPostscript" TextWrapping="Wrap" Foreground="Lime" VerticalAlignment="Center" FontSize="13" Margin="2"/>
                <TextBlock x:Name="lbCopyPostscript" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="[复制]" VerticalAlignment="Center" FontSize="12" Foreground="White" Cursor="Hand"/>
                <TextBlock HorizontalAlignment="Center" Margin="2" FontSize="14" TextWrapping="Wrap" Text="附言请复制此处内容,有其他任何内容将无法入账!" VerticalAlignment="Center" Foreground="Red"/>
            </StackPanel>
            <TextBlock Text="网银地址" Margin="0,2,2,2" Grid.Row="4" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="4">
                <!-- NavigateUri="https://mybank.icbc.com.cn"/  -->
                <HyperlinkButton HorizontalAlignment="Center" VerticalAlignment="Center" TargetName="_blank" >
                    <Image HorizontalAlignment="Center" Source="../images/icbc.png" Stretch="Fill" VerticalAlignment="Center" Width="153" Height="33" />
                </HyperlinkButton>
            </StackPanel>
            <TextBlock Text="支付说明" Margin="0,2,2,2" Grid.Row="5" />
            <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="5" Margin="2">
                <TextBlock HorizontalAlignment="Stretch" TextWrapping="Wrap" Text="注意: 银行账号不固定,请每次转账前在本页面查看银行账号!如果转错账号,损失由客户自己承担!" VerticalAlignment="Stretch" Foreground="Lime" Margin="2,0"/>
            </StackPanel>
        </Grid>
        <Grid x:Name="gridInValid" Background="#FF404040" Grid.Row="1" Visibility="Collapsed">
            <Border VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2" Grid.RowSpan="3"></Border>
            <StackPanel Orientation="Horizontal" Width="251" Margin="60,57,40,19" HorizontalAlignment="Center">
                <TextBlock Text="暂时无法获取充值卡号" Foreground="Lime"  />
            </StackPanel>
        </Grid>
        <StackPanel x:Name="spRefresh" Orientation="Horizontal" HorizontalAlignment="Right" Margin="2" Grid.Row="1" VerticalAlignment="Top" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="卡号随机变动，超时请刷新重新获取。" VerticalAlignment="Center" Foreground="#FFF9FF92" />
            <TextBlock HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="过期时间" VerticalAlignment="Center" Foreground="White"/>
            <TextBlock x:Name="lbValidTime" HorizontalAlignment="Center" Margin="2" TextWrapping="Wrap" Text="05:00" VerticalAlignment="Center" Foreground="Lime"/>
            <Button x:Name="btRefresh" Content="Button" Style="{StaticResource ButtonStyle_Refresh}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2"/>
        </StackPanel>
        <Grid x:Name="gridLoading" Grid.RowSpan="3" Background="#FF404040" Visibility="Collapsed">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2" Grid.RowSpan="3">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="200" IsIndeterminate="True"/>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
    </sdk:ChildWindow>
